<?php
//基类cookie类
namespace Common\Controller;
use Think\Controller;
class CookieController extends Controller {
	
	public function _initialize()
	{
		$this->checkCookie();
	}
	public function checkCookie()
	{
		$userName = cookie("username");
		if($userName=="" || $userName==NULL)
		{
			redirect('/index.php/Admins/Sys/Login/', 1, '页面跳转中...');
		}
	}
	
	
	
	

}

?>